package com.robotlab.easytranslate.adapter;

import android.media.MediaPlayer;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.AdapterView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.robotlab.easytranslate.R;
import com.robotlab.easytranslate.dbase.Wordbook;

import java.io.IOException;
import java.util.List;

public class wordAdapter extends BaseQuickAdapter<Wordbook, BaseViewHolder> {

    public wordAdapter(int layoutResId, @Nullable List<Wordbook> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,Wordbook item) {
        helper.setText(R.id.tv_word, item.getQuereText());
        helper.setText(R.id.tv_voiceText, item.getVoiceText());
        helper.setText(R.id.tv_mean, item.getMeanText());

    }
}
